package com.service.business.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.trading.controller.rep.TradingSpotPairsRep;
import com.service.dao.model.TradingSpotOrder;
import com.service.dao.model.TradingSpotPairs;

import java.math.BigDecimal;
import java.util.List;


/**
 * 币币交易对
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-02-05 11:10:01
 */
public interface TradingSpotPairsService extends IService<TradingSpotPairs> {

    TradingSpotPairs getBySymbol(String symbol);

    List<TradingSpotPairsRep> listPairs();

    BigDecimal computeTradeFee(TradingSpotOrder spotOrder, BigDecimal orderPrice, BigDecimal tradeNum);
}

